import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FormsModule } from '@angular/forms';

// bootstrap 下拉菜单
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';

import { MainComponent } from '../component/main/main.component';
import { HeaderComponent } from '../component/layout/header/header.component';
import { LeftMenuComponent } from '../component/layout/left/left.component';
import { FooterComponent } from '../component/layout/footer/footer.component';

// 路由
import { MainRouter } from '../router/main.router';

// 共享模块
import { ShareModule } from '../../../share/module/share.module';

// 提示
import { NoticeService } from '../../../share/service/notice.service';

// 登录服务
import { LoginService } from '../../login/service/login.service';
// 菜单服务
import { MenuService } from '../service/menu.service';
// 路由权限服务
import { AuthGuardService } from '../service/auth.guard.service';

/**
 * 主框架页面系统特性模块
 */
@NgModule({
  declarations: [
    MainComponent,
    HeaderComponent,
    LeftMenuComponent,
    FooterComponent
  ],
  imports: [
    CommonModule,
    BrowserAnimationsModule,
    FormsModule,
    BsDropdownModule.forRoot(),
    ShareModule,
    MainRouter,
  ],
  providers: [
    LoginService,
    MenuService,
    NoticeService,
    AuthGuardService,
  ],
})
export class MainModule { }
